﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="wctlProyectoPersonalAsignar.ascx.vb" Inherits="Controls_wctlProyectoAsignarPersonal" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxDataView" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"   Namespace="DevExpress.Web.ASPxCallbackPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dx" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="Anthem" Namespace="Anthem" TagPrefix="anthem" %>
<%@ Register Assembly="AnthemExtensions" Namespace="AnthemExtensions" TagPrefix="anthemext" %><%@ Register assembly="DevExpress.Web.v10.1, Version=10.1.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxPanel" tagprefix="dx" %>

 <script type="text/javascript">
function OnRowClick(e) {
	//Clear the text selection
	_aspxClearSelection();
	//Unselect all rows
	dgvGrupoTrabajo._selectAllRowsOnPage(false);
	//Select the row
	dgvGrupoTrabajo.SelectRow(e.visibleIndex, true);
	}

function OnRowClick1(e) {
    //Clear the text selection
    _aspxClearSelection();
    //Unselect all rows
    dgvIntegrantesGrupo._selectAllRowsOnPage(false);
    //Select the row
    dgvIntegrantesGrupo.SelectRow(e.visibleIndex, true);
}


</script>
<style type="text/css">
    .style2
    {
        height: 21px;
    }
    .style3
    {
        width: 100px;
        height: 30px;
    }

</style>
<link href="../styles/base.css" rel="stylesheet" type="text/css" /> 
<fieldset style="font-size: 8pt; margin-left: 10px; width: 98%">
    <div>
        </div>
        <legend style="font-size: 11pt">
            <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/LogoPwC.jpg" /></legend>
        <br />
        &nbsp;
        <asp:Label ID="Label16" runat="server" CssClass="textMaroon" Font-Bold="False" Font-Size="Large"
            Text="Datos del Grupo de Trabajo"></asp:Label><br />
        <table class="textMaroon" style="font-weight: bold; margin-left: 8px; width: 637px">
            <tr>
                <td colspan="4" style="height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    <asp:Label ID="Label2" runat="server" Font-Bold="False" Text="Código Proyecto:" Width="108px"></asp:Label></td>
                <td class="style2">
                    <anthem:textbox id="txtCodigo" runat="server" borderstyle="Solid" cssclass="textBoxMaroon"
                        maxlength="10" width="74px" Enabled="False"></anthem:textbox>
                </td>
                <td style="width: 100px; height: 21px">
                    <asp:Label ID="Label17" runat="server" Font-Bold="False" Text="Descripción:"></asp:Label>
                </td>
                <td style="width: 100px; height: 21px">
                    <anthem:TextBox ID="txtDescripcion" runat="server" BorderStyle="Solid" CssClass="textBoxMaroon"
                        Enabled="False" Width="250px"></anthem:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    <asp:Label ID="Label18" runat="server" Font-Bold="False" Text="Fecha Inicio:"></asp:Label></td>
                <td class="style2">
                    <dx:ASPxDateEdit ID="cboFechaInicio" runat="server" Height="16px" Width="150px" 
                        Enabled="False">
                    </dx:ASPxDateEdit>
                </td>
                <td style="width: 100px; height: 21px">
                    <asp:Label ID="Label19" runat="server" Font-Bold="False" Text="Fecha Fin:"></asp:Label>
                </td>
                <td style="width: 100px; height: 21px">
                    <dx:ASPxDateEdit ID="cboFechaFin" runat="server" Width="150px" Enabled="False">
                    </dx:ASPxDateEdit>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    <asp:Label ID="Label4" runat="server" Font-Bold="False" Text="LoS:"></asp:Label></td>
                <td class="style2">
                    <anthem:TextBox ID="txtLos" runat="server" BorderStyle="Solid" CssClass="textBoxMaroon"
                        Enabled="False"></anthem:TextBox></td>
                <td style="width: 100px; height: 21px">
                    <asp:Label ID="Label5" runat="server" Font-Bold="False" Text="Sub LoS:"></asp:Label>
                </td>
                <td style="width: 100px; height: 21px">
                    <anthem:TextBox ID="txtSubLos" runat="server" BorderStyle="Solid" CssClass="textBoxMaroon"
                        Enabled="False"></anthem:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width: 78px; height: 21px">
                    &nbsp;</td>
                <td class="style2">
                    &nbsp;</td>
                <td style="width: 100px; height: 21px">
                </td>
                <td style="width: 100px; height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
        <asp:Label ID="Label20" runat="server" CssClass="textMaroon" Font-Bold="False" Font-Size="Medium"
            Text="Requerimientos del Proyecto"></asp:Label>
                </td>
                <td style="height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="4">
        <span class="footerText">
                    <dx:ASPxGridView ID="dgvGrupoTrabajo" runat="server" 
                        AutoGenerateColumns="False" Caption="Grupo de Trabajo (Cargos)"
                        ClientInstanceName="dgvGrupoTrabajo" Font-Bold="False" KeyFieldName="catdesCategoria"
                        Width="300px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                        CssPostfix="PlasticBlue" DataSourceID="DsrcProyectoRequerimiento">
                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                            CssPostfix="PlasticBlue">
                            <Header Font-Bold="True" ImageSpacing="10px" SortingImageSpacing="10px">
                            </Header>
                            <AlternatingRow Enabled="True">
                            </AlternatingRow>
                        </Styles>
                        <SettingsPager ShowDefaultImages="False">
                            <AllButton Text="All">
                            </AllButton>
                            <NextPageButton Text="Next &gt;">
                            </NextPageButton>
                            <PrevPageButton Text="&lt; Prev">
                            </PrevPageButton>
                        </SettingsPager>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <ClientSideEvents RowClick="function(s, e) { OnRowClick(e); }" />
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="Id" FieldName="reqcodCategoria" 
                                VisibleIndex="0" Width="20px" Visible="False">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Categoría" FieldName="catdesCategoria" 
                                VisibleIndex="0" Width="260px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Cantidad Requerida" FieldName="reqnumSecuencial" 
                                VisibleIndex="1" Width="20px">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Cantidad Faltante" 
                                FieldName="reqcantFaltante" VisibleIndex="2">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <StylesEditors>
                            <CalendarHeader Spacing="11px">
                            </CalendarHeader>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                    <asp:ObjectDataSource ID="DsrcProyectoRequerimiento" runat="server" 
                        SelectMethod="fuBLListarRequerimientoPersonal" 
                        TypeName="BLGestionProyecto.BLGPProyecto">
                        <SelectParameters>
                            <asp:ControlParameter ControlID  ="txtCodigo" Name="psPrycodProyecto" 
                                PropertyName="Text" Type="String" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
        </span>
                </td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="4">
        <span class="footerText">
                    <asp:Label ID="lblmensaje" runat="server" Font-Size="Small" ForeColor="#C00000"></asp:Label>
        </span>
                </td>
            </tr>
            <tr>
                <td style="height: 21px" colspan="3">
        <asp:Label ID="Label21" runat="server" CssClass="textMaroon" Font-Bold="False" Font-Size="Medium"
            Text="Integrantes del Grupo de Trabajo"></asp:Label>
                </td>
                <td style="height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="3" style="height: 21px">
                    <table>
                        <tr>
                            <td style="width: 100px">
        <span class="footerText">
                                <asp:Button ID="btnAgregar" runat="server" CssClass="button2" 
                                    Text="Agregar" Width="110px" />
        </span>
                            </td>
                            <td style="width: 100px">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td style="height: 21px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="4" style="height: 21px">
        <span class="footerText">
                    <dx:ASPxGridView ID="dgvIntegrantesGrupo" runat="server" 
                        AutoGenerateColumns="False" Caption="Integrantes del Grupo de Trabajo"
                        ClientInstanceName="dgvIntegrantesGrupo" Font-Bold="False"
                        Width="573px" CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                        CssPostfix="PlasticBlue" DataSourceID="DsrcGrupodeTrabajo" 
                        KeyFieldName="asicodPersona">
                        <Styles CssFilePath="~/App_Themes/PlasticBlue/{0}/styles.css" 
                            CssPostfix="PlasticBlue">
                            <Header Font-Bold="True" ImageSpacing="10px" SortingImageSpacing="10px">
                            </Header>
                            <AlternatingRow Enabled="True">
                            </AlternatingRow>
                        </Styles>
                        <SettingsPager ShowDefaultImages="False">
                            <AllButton Text="All">
                            </AllButton>
                            <NextPageButton Text="Next &gt;">
                            </NextPageButton>
                            <PrevPageButton Text="&lt; Prev">
                            </PrevPageButton>
                        </SettingsPager>
                        <ImagesFilterControl>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/Editors/Loading.gif">
                            </LoadingPanel>
                        </ImagesFilterControl>
                        <Images SpriteCssFilePath="~/App_Themes/PlasticBlue/{0}/sprite.css">
                            <LoadingPanelOnStatusBar Url="~/App_Themes/PlasticBlue/GridView/gvLoadingOnStatusBar.gif">
                            </LoadingPanelOnStatusBar>
                            <LoadingPanel Url="~/App_Themes/PlasticBlue/GridView/Loading.gif">
                            </LoadingPanel>
                        </Images>
                        <ClientSideEvents RowClick="function(s, e) { OnRowClick1(e);}" />
                        <Columns>
                            <dx:GridViewDataTextColumn Caption="Id" FieldName="asicodPersona" 
                                VisibleIndex="0">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Apellidos y Nombres" FieldName="Nombre" 
                                VisibleIndex="1">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Categoría" FieldName="catdesCategoria" 
                                VisibleIndex="2">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="Los" FieldName="losdescripcion" 
                                VisibleIndex="3">
                            </dx:GridViewDataTextColumn>
                            <dx:GridViewDataTextColumn Caption="SubLos" FieldName="sublosnombre" 
                                VisibleIndex="4">
                            </dx:GridViewDataTextColumn>
                        </Columns>
                        <StylesEditors>
                            <CalendarHeader Spacing="11px">
                            </CalendarHeader>
                            <ProgressBar Height="25px">
                            </ProgressBar>
                        </StylesEditors>
                    </dx:ASPxGridView>
                    <asp:ObjectDataSource ID="DsrcGrupodeTrabajo" runat="server" 
                        SelectMethod="fuBLListarGrupoTrabajo" 
                        TypeName="BLGestionProyecto.BLGPProyecto">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="txtCodigo" Name="psprycodProyecto" 
                                PropertyName="Text" Type="String" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
        </span>
                    <br />
        <span class="footerText">
                    <asp:Label ID="lblmensaje0" runat="server" Font-Size="Small" 
                        ForeColor="#C00000"></asp:Label>
        </span>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <table>
                        <tr>
                            <td class="style3">
        <span class="footerText">
                                <asp:Button ID="btnReemplazar" runat="server" CssClass="button2" 
                                    Text="Reemplazar" Width="111px" />
        </span>
                            </td>
                            <td class="style3">
        <span class="footerText">
                                <asp:Button ID="btnEliminar" runat="server" CssClass="button2" 
                                    Text="Eliminar" Width="110px" />
        </span>
                            </td>
                        </tr>
                    </table>
                </td>
                <td style="width: 100px">
                    &nbsp;</td>
                <td style="width: 100px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;</td>
                <td style="width: 100px">
                    &nbsp;</td>
                <td style="width: 100px">
                    &nbsp;</td>
            </tr>
            <tr>
                <td colspan="2">
                    <table>
                        <tr>
                            <td class="style3">
                                <span class="footerText">
                                <asp:Button ID="btnRetornar" runat="server" CssClass="button2" OnClick="btnRetornar_Click"
                                    Text="Retornar" Width="107px" />
        </span></td>
                            <td class="style3">
                                &nbsp;</td>
                        </tr>
                    </table>
                </td>
                <td style="width: 100px">
                    &nbsp;</td>
                <td style="width: 100px">
                    &nbsp;</td>
            </tr>
        </table>
    </div>
</fieldset>
